// 系统管理员数据访问层
// author: Xavier
package dao

import (
	"admin_go_api/api/entity"
	"admin_go_api/pkg/db"
)

// 用户详情
func SysAdminDetail(dto entity.LoginDto) (sysAdmin entity.SysAdmin) {
	username := dto.Username
	db.Db.Where("username = ?", username).First(&sysAdmin)
	return sysAdmin
}
